package com.transport.dao;

import java.util.ArrayList;
import java.util.List;

import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.transport.model.Cars;

public class CarsDao extends HibernateDaoSupport{

	public List<Cars> bindSelect(Cars cars) {
		List<Cars> carList=	getHibernateTemplate().find("from Cars where type='"+cars.getType()+"'");
		return carList;
	}

}
